#!/bin/sh
echo "Startup @project.build.finalName@"
export CRON_JOBS_HOME=/root
jar_path=${CRON_JOBS_HOME}/@project.build.finalName@.jar
class_name=com.vanke.devops.api.Application
java -Djava.security.egd=file:/dev/./urandom -Xms1G -Xmx1G -XX:+UseConcMarkSweepGC -Dfile.encoding=utf-8 -jar ${jar_path} ${class_name} --spring.profiles.active=@profiles.active@
pid=`ps -ef | grep @project.build.finalName@.jar | grep -v grep | awk '{print $2}'`
echo "Startup @project.build.finalName@ successfully, pid ${pid}"